Package org.copperengine.core
Interface Callback<E>
-
- Type Parameters:
E
- type of data held in the response.
public interface Callback<E>
Callback interface for asynchronous responses. There are two ways how the receiver of a response may pass it to a copper engine. First, the receiver knows the engine and usesengine.notify
. Second, the receiver puts the response into a callback object, created and passed to it by the caller. Callback objects are created using theWorkflow.createCallback()
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getCorrelationId()
Response<E>
getResponse(Workflow<?> wf)
void
notify(E response, Acknowledge ack)
void
notify(java.lang.Exception exception, Acknowledge ack)
-
-
-
Method Detail
-
getCorrelationId
java.lang.String getCorrelationId()
-
notify
void notify(E response, Acknowledge ack)
-
notify
void notify(java.lang.Exception exception, Acknowledge ack)
-
-