public class PushOutInterceptor extends AbstractInterceptor<MessagingContainer> implements ExecutionResultInterceptor, OperationInterceptor, Prototype<PushOutInterceptor>
Extension.InitPriorityComparator, Extension.ShutdownPriorityComparator
Prototype.PrototypingContext
Modifier and Type | Field and Description |
---|---|
static PushGateway |
DEFAULT_PUSH_GATEWAY |
DEFAULT_INIT_PRIORITY, DEFAULT_SHUTDOWN_PRIORITY
Constructor and Description |
---|
PushOutInterceptor() |
PushOutInterceptor(Graph pushLinkContractsGraph,
PushGateway pushGateway) |
Modifier and Type | Method and Description |
---|---|
InterceptorResult |
after(Operation operation,
Graph operationResultGraph,
ExecutionContext executionContext)
Run after an operation is executed.
|
InterceptorResult |
before(Operation operation,
Graph operationResultGraph,
ExecutionContext executionContext)
Run before an operation is executed.
|
void |
finish(MessagingContainer messagingContainer,
ExecutionContext executionContext,
ExecutionResult executionResult)
Run on the execution context and result after it has been finished.
|
PushGateway |
getPushGateway() |
Graph |
getPushLinkContractsGraph() |
Graph |
getPushLinkContractsGraph(ExecutionContext executionContext) |
PushOutInterceptor |
instanceFor(Prototype.PrototypingContext prototypingContext) |
void |
setPushGateway(PushGateway pushGateway) |
void |
setPushLinkContractsGraph(Graph pushLinkContractsGraph) |
clearDisabled, clearDisabledForMessage, clearDisabledForMessageEnvelope, clearDisabledForOperation, getInitPriority, getShutdownPriority, init, setDisabled, setDisabledForMessage, setDisabledForMessageEnvelope, setDisabledForOperation, shutdown, skip
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearDisabled, clearDisabledForMessage, clearDisabledForMessageEnvelope, clearDisabledForOperation, getInitPriority, getShutdownPriority, init, setDisabled, setDisabledForMessage, setDisabledForMessageEnvelope, setDisabledForOperation, shutdown, skip
public static final PushGateway DEFAULT_PUSH_GATEWAY
public PushOutInterceptor(Graph pushLinkContractsGraph, PushGateway pushGateway)
public PushOutInterceptor()
public PushOutInterceptor instanceFor(Prototype.PrototypingContext prototypingContext)
instanceFor
in interface Prototype<PushOutInterceptor>
public InterceptorResult before(Operation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException
OperationInterceptor
before
in interface OperationInterceptor
operation
- The operation to process.operationResultGraph
- The operation's message result.executionContext
- The current execution context.Xdi2MessagingException
public InterceptorResult after(Operation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException
OperationInterceptor
after
in interface OperationInterceptor
operation
- The operation to process.operationResultGraph
- The operation's message result.executionContext
- The current execution context.Xdi2MessagingException
public void finish(MessagingContainer messagingContainer, ExecutionContext executionContext, ExecutionResult executionResult) throws Xdi2MessagingException
ExecutionResultInterceptor
finish
in interface ExecutionResultInterceptor
messagingContainer
- The current messaging container.executionContext
- The current execution context.executionResult
- The current execution result.Xdi2MessagingException
public Graph getPushLinkContractsGraph(ExecutionContext executionContext)
public Graph getPushLinkContractsGraph()
public void setPushLinkContractsGraph(Graph pushLinkContractsGraph)
public PushGateway getPushGateway()
public void setPushGateway(PushGateway pushGateway)
Copyright © 2017. All rights reserved.