public class InputStreamPublisher extends java.lang.Object implements ActorPublisher<ByteString>, ActorLogging
ActorPublisher.Internal$
Actor.emptyBehavior$, Actor.ignoringBehavior$
Constructor and Description |
---|
InputStreamPublisher(java.io.InputStream is,
scala.concurrent.Promise<IOResult> completionPromise,
int chunkSize) |
Modifier and Type | Method and Description |
---|---|
protected abstract static void |
akka$actor$Actor$_setter_$context_$eq(ActorContext x$1) |
protected abstract static void |
akka$actor$Actor$_setter_$self_$eq(ActorRef x$1) |
static void |
akka$actor$ActorLogging$$_log_$eq(LoggingAdapter x$1) |
static LoggingAdapter |
akka$actor$ActorLogging$$_log() |
protected abstract static void |
akka$stream$actor$ActorPublisher$_setter_$akka$stream$actor$ActorPublisher$$state_$eq(ActorPublisherState x$1) |
static void |
akka$stream$actor$ActorPublisher$$demand_$eq(long x$1) |
static long |
akka$stream$actor$ActorPublisher$$demand() |
static void |
akka$stream$actor$ActorPublisher$$lifecycleState_$eq(akka.stream.actor.ActorPublisher.Internal.LifecycleState x$1) |
static akka.stream.actor.ActorPublisher.Internal.LifecycleState |
akka$stream$actor$ActorPublisher$$lifecycleState() |
static void |
akka$stream$actor$ActorPublisher$$scheduledSubscriptionTimeout_$eq(Cancellable x$1) |
static Cancellable |
akka$stream$actor$ActorPublisher$$scheduledSubscriptionTimeout() |
static ActorPublisherState |
akka$stream$actor$ActorPublisher$$state() |
static void |
akka$stream$actor$ActorPublisher$$subscriber_$eq(org.reactivestreams.Subscriber<java.lang.Object> x$1) |
static org.reactivestreams.Subscriber<java.lang.Object> |
akka$stream$actor$ActorPublisher$$subscriber() |
protected static void |
aroundPostRestart(java.lang.Throwable reason) |
protected static void |
aroundPostStop() |
protected static void |
aroundPreRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message) |
protected static void |
aroundPreStart() |
protected static void |
aroundReceive(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive,
java.lang.Object msg) |
byte[] |
arr() |
ActorContext |
context()
Stores the context for this actor, including self, and sender.
|
static boolean |
isActive() |
static boolean |
isCanceled() |
static boolean |
isCompleted() |
static boolean |
isErrorEmitted() |
static LoggingAdapter |
log() |
static void |
onComplete() |
static void |
onCompleteThenStop() |
static void |
onError(java.lang.Throwable cause) |
static void |
onErrorThenStop(java.lang.Throwable cause) |
static void |
onNext(T element) |
static void |
postRestart(java.lang.Throwable reason) |
void |
postStop()
User overridable callback.
|
static void |
preRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message) |
static void |
preStart() |
static Props |
props(java.io.InputStream is,
scala.concurrent.Promise<IOResult> completionPromise,
int chunkSize) |
void |
readAndEmit() |
void |
readAndSignal() |
long |
readBytesTotal() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receive()
This defines the initial actor behavior, it must return a partial function
with the actor logic.
|
ActorRef |
self()
The 'self' field holds the ActorRef for this actor.
|
static ActorRef |
sender() |
static scala.concurrent.duration.Duration |
subscriptionTimeout() |
static SupervisorStrategy |
supervisorStrategy() |
static long |
totalDemand() |
static void |
unhandled(java.lang.Object message) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, cancelSelf, isActive, isCanceled, isCompleted, isErrorEmitted, onComplete, onCompleteThenStop, onError, onErrorThenStop, onNext, subscriptionTimeout, totalDemand
postRestart, preRestart, preStart, sender, supervisorStrategy, unhandled
log
public InputStreamPublisher(java.io.InputStream is, scala.concurrent.Promise<IOResult> completionPromise, int chunkSize)
public static Props props(java.io.InputStream is, scala.concurrent.Promise<IOResult> completionPromise, int chunkSize)
public static final ActorRef sender()
public static SupervisorStrategy supervisorStrategy()
public static void preStart() throws java.lang.Exception
java.lang.Exception
public static void preRestart(java.lang.Throwable reason, scala.Option<java.lang.Object> message) throws java.lang.Exception
java.lang.Exception
public static void postRestart(java.lang.Throwable reason) throws java.lang.Exception
java.lang.Exception
public static void unhandled(java.lang.Object message)
protected abstract static void akka$actor$Actor$_setter_$context_$eq(ActorContext x$1)
protected abstract static void akka$actor$Actor$_setter_$self_$eq(ActorRef x$1)
public static ActorPublisherState akka$stream$actor$ActorPublisher$$state()
public static org.reactivestreams.Subscriber<java.lang.Object> akka$stream$actor$ActorPublisher$$subscriber()
public static void akka$stream$actor$ActorPublisher$$subscriber_$eq(org.reactivestreams.Subscriber<java.lang.Object> x$1)
public static long akka$stream$actor$ActorPublisher$$demand()
public static void akka$stream$actor$ActorPublisher$$demand_$eq(long x$1)
public static akka.stream.actor.ActorPublisher.Internal.LifecycleState akka$stream$actor$ActorPublisher$$lifecycleState()
public static void akka$stream$actor$ActorPublisher$$lifecycleState_$eq(akka.stream.actor.ActorPublisher.Internal.LifecycleState x$1)
public static Cancellable akka$stream$actor$ActorPublisher$$scheduledSubscriptionTimeout()
public static void akka$stream$actor$ActorPublisher$$scheduledSubscriptionTimeout_$eq(Cancellable x$1)
public static scala.concurrent.duration.Duration subscriptionTimeout()
public static final boolean isActive()
public static final long totalDemand()
public static final boolean isCompleted()
public static final boolean isErrorEmitted()
public static final boolean isCanceled()
public static void onNext(T element)
public static void onComplete()
public static void onCompleteThenStop()
public static void onError(java.lang.Throwable cause)
public static void onErrorThenStop(java.lang.Throwable cause)
protected static void aroundReceive(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive, java.lang.Object msg)
protected static void aroundPreStart()
protected static void aroundPreRestart(java.lang.Throwable reason, scala.Option<java.lang.Object> message)
protected static void aroundPostRestart(java.lang.Throwable reason)
protected static void aroundPostStop()
protected abstract static void akka$stream$actor$ActorPublisher$_setter_$akka$stream$actor$ActorPublisher$$state_$eq(ActorPublisherState x$1)
public static LoggingAdapter akka$actor$ActorLogging$$_log()
public static void akka$actor$ActorLogging$$_log_$eq(LoggingAdapter x$1)
public static LoggingAdapter log()
public ActorContext context()
Actor
forward
.
WARNING: Only valid within the Actor itself, so do not close over it and publish it to other threads!
ActorContext
is the Scala API. getContext
returns a
UntypedActorContext
, which is the Java API of the actor
context.
public final ActorRef self()
Actor
self ! message
public byte[] arr()
public long readBytesTotal()
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Actor
public void readAndSignal()
public void readAndEmit()