Interface ScheduledMessage
-
- All Superinterfaces:
Comparable<Delayed>,Delayed,Traceable,TracedMessage
public interface ScheduledMessage extends Delayed, TracedMessage
- Author:
- Joost van de Wijgerd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScheduledMessagecopyForRescheduling(long newFireTime)longgetFireTime(TimeUnit timeUnit)The absolute time on which this message should be sendUUIDgetId()The UUID (time based) for this messageScheduledMessageKeygetKey()ByteBuffergetMessageBytes()The messageClassgetMessageClass()StringgetMessageQueueAffinityKey()ActorRefgetReceiver()The receiver of the scheduled messageActorRefgetSender()The sender-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.elasticsoftware.elasticactors.tracing.Traceable
getCreationContext, getTraceContext
-
Methods inherited from interface org.elasticsoftware.elasticactors.tracing.TracedMessage
getType, getTypeAsString
-
-
-
-
Method Detail
-
getKey
ScheduledMessageKey getKey()
-
getId
UUID getId()
The UUID (time based) for this message- Returns:
-
getReceiver
ActorRef getReceiver()
The receiver of the scheduled message- Returns:
-
getMessageBytes
ByteBuffer getMessageBytes()
The message- Returns:
-
getSender
@Nullable ActorRef getSender()
The sender- Specified by:
getSenderin interfaceTracedMessage- Returns:
-
getFireTime
long getFireTime(TimeUnit timeUnit)
The absolute time on which this message should be send- Parameters:
timeUnit-- Returns:
-
getMessageClass
Class getMessageClass()
-
copyForRescheduling
ScheduledMessage copyForRescheduling(long newFireTime)
-
-