
public class PushOutInterceptor extends AbstractInterceptor<MessagingContainer> implements ExecutionResultInterceptor, OperationInterceptor, Prototype<PushOutInterceptor>
Extension.InitPriorityComparator, Extension.ShutdownPriorityComparatorPrototype.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, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearDisabled, clearDisabledForMessage, clearDisabledForMessageEnvelope, clearDisabledForOperation, getInitPriority, getShutdownPriority, init, setDisabled, setDisabledForMessage, setDisabledForMessageEnvelope, setDisabledForOperation, shutdown, skippublic 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
OperationInterceptorbefore in interface OperationInterceptoroperation - The operation to process.operationResultGraph - The operation's message result.executionContext - The current execution context.Xdi2MessagingExceptionpublic InterceptorResult after(Operation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException
OperationInterceptorafter in interface OperationInterceptoroperation - The operation to process.operationResultGraph - The operation's message result.executionContext - The current execution context.Xdi2MessagingExceptionpublic void finish(MessagingContainer messagingContainer, ExecutionContext executionContext, ExecutionResult executionResult) throws Xdi2MessagingException
ExecutionResultInterceptorfinish in interface ExecutionResultInterceptormessagingContainer - The current messaging container.executionContext - The current execution context.executionResult - The current execution result.Xdi2MessagingExceptionpublic 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.