Package org.atmosphere.cpr
Class Deliver
java.lang.Object
org.atmosphere.cpr.Deliver
- All Implemented Interfaces:
Serializable
A Deliver is an
Broadcaster's internal token that is created before the message gets Broadcaster. A Deliver gives information about
what will be delivered, to whow, etc.- Author:
- Jeanfrancois Arcand
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected CacheMessageprotected BroadcasterFuture<?> protected Objectprotected Objectprotected final AtmosphereResourceprotected final Set<AtmosphereResource> protected final Deliver.TYPEprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionDeliver(Object message, Set<AtmosphereResource> resources, BroadcasterFuture<?> future, Object originalMessage) Deliver(Object message, AtmosphereResource r, BroadcasterFuture<?> future, Object originalMessage) Deliver(Object message, BroadcasterFuture<?> future, boolean writeLocally) Deliver(Object message, BroadcasterFuture<?> future, Object originalMessage) Deliver(AtmosphereResource r, Deliver e) Deliver(AtmosphereResource r, Deliver e, CacheMessage cacheMessage) Deliver(Deliver.TYPE type, Object originalMessage, Object message, AtmosphereResource r, BroadcasterFuture<?> future, CacheMessage cache, boolean writeLocally, Set<AtmosphereResource> resources, boolean async) -
Method Summary
Modifier and TypeMethodDescriptiongetCache()getType()booleanisAsync()booleanvoidsetAsync(boolean async) voidsetCache(CacheMessage cache) voidsetFuture(BroadcasterFuture<?> future) voidsetMessage(Object message) voidsetOriginalMessage(Object originalMessage) voidsetWriteLocally(boolean writeLocally) toString()
-
Field Details
-
message
-
future
-
writeLocally
protected boolean writeLocally -
originalMessage
-
resource
-
resources
-
type
-
cache
-
async
protected boolean async
-
-
Constructor Details
-
Deliver
public Deliver(Deliver.TYPE type, Object originalMessage, Object message, AtmosphereResource r, BroadcasterFuture<?> future, CacheMessage cache, boolean writeLocally, Set<AtmosphereResource> resources, boolean async) -
Deliver
public Deliver(Object message, AtmosphereResource r, BroadcasterFuture<?> future, Object originalMessage) -
Deliver
-
Deliver
-
Deliver
-
Deliver
public Deliver(Object message, Set<AtmosphereResource> resources, BroadcasterFuture<?> future, Object originalMessage) -
Deliver
-
-
Method Details
-
toString
-
getMessage
-
setMessage
-
getFuture
-
setFuture
-
isWriteLocally
public boolean isWriteLocally() -
setWriteLocally
public void setWriteLocally(boolean writeLocally) -
getOriginalMessage
-
setOriginalMessage
-
getResource
-
getResources
-
getType
-
getCache
-
setCache
-
isAsync
public boolean isAsync() -
setAsync
public void setAsync(boolean async)
-