public class FutureMessage<M extends Message> extends com.google.common.util.concurrent.AbstractFuture<Message>
Future for Messages that
are being added to the Log via Log.add(com.thinkaurelius.titan.diskstorage.StaticBuffer).
This class can be used by Log implementations to wrap messages.| Constructor and Description |
|---|
FutureMessage(M message) |
| Modifier and Type | Method and Description |
|---|---|
void |
delivered()
This method should be called by
Log implementations when the message was successfully
added to the log. |
void |
failed(Throwable exception)
This method should be called by implementations when the message could not be added to the log
with the respective exception object.
|
M |
getMessage()
Returns the actual message that was added to the log
|
String |
toString() |
public FutureMessage(M message)
public M getMessage()
public void delivered()
Log implementations when the message was successfully
added to the log.public void failed(Throwable exception)
exception - Copyright © 2012–2015. All rights reserved.