public class WriteListenerInterceptor extends AbstractInterceptor<MessagingContainer> implements MessageEnvelopeInterceptor, OperationInterceptor, Prototype<WriteListenerInterceptor>
Modifier and Type | Class and Description |
---|---|
static interface |
WriteListenerInterceptor.WriteListener |
Extension.InitPriorityComparator, Extension.ShutdownPriorityComparator
Prototype.PrototypingContext
DEFAULT_INIT_PRIORITY, DEFAULT_SHUTDOWN_PRIORITY
Constructor and Description |
---|
WriteListenerInterceptor() |
Modifier and Type | Method and Description |
---|---|
void |
addWriteListener(XDIAddress writeListenerXDIAddress,
WriteListenerInterceptor.WriteListener writeListener) |
InterceptorResult |
after(MessageEnvelope messageEnvelope,
ExecutionContext executionContext,
ExecutionResult executionResult)
Run after a message envelope is executed.
|
InterceptorResult |
after(Operation operation,
Graph operationResultGraph,
ExecutionContext executionContext)
Run after an operation is executed.
|
InterceptorResult |
before(MessageEnvelope messageEnvelope,
ExecutionContext executionContext,
ExecutionResult executionResult)
Run before a message envelope is executed.
|
InterceptorResult |
before(Operation operation,
Graph operationResultGraph,
ExecutionContext executionContext)
Run before an operation is executed.
|
void |
exception(MessageEnvelope messageEnvelope,
ExecutionContext executionContext,
ExecutionResult executionResult,
Exception ex)
Run if an exception occurs while a message envelope is executed.
|
WriteListenerInterceptor |
instanceFor(Prototype.PrototypingContext prototypingContext) |
void |
removeWriteListener(XDIAddress writeListenerXDIAddress,
WriteListenerInterceptor.WriteListener writeListener) |
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 WriteListenerInterceptor instanceFor(Prototype.PrototypingContext prototypingContext)
instanceFor
in interface Prototype<WriteListenerInterceptor>
public InterceptorResult before(MessageEnvelope messageEnvelope, ExecutionContext executionContext, ExecutionResult executionResult) throws Xdi2MessagingException
MessageEnvelopeInterceptor
before
in interface MessageEnvelopeInterceptor
messageEnvelope
- The message envelope to process.executionContext
- The current execution context.executionResult
- The executionResult.Xdi2MessagingException
public InterceptorResult after(MessageEnvelope messageEnvelope, ExecutionContext executionContext, ExecutionResult executionResult) throws Xdi2MessagingException
MessageEnvelopeInterceptor
after
in interface MessageEnvelopeInterceptor
messageEnvelope
- The message envelope to process.executionContext
- The current execution context.executionResult
- The executionResult.Xdi2MessagingException
public void exception(MessageEnvelope messageEnvelope, ExecutionContext executionContext, ExecutionResult executionResult, Exception ex)
MessageEnvelopeInterceptor
exception
in interface MessageEnvelopeInterceptor
executionContext
- The current execution context.executionResult
- The executionResult.ex
- The exception that occurred.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 addWriteListener(XDIAddress writeListenerXDIAddress, WriteListenerInterceptor.WriteListener writeListener)
public void removeWriteListener(XDIAddress writeListenerXDIAddress, WriteListenerInterceptor.WriteListener writeListener)
Copyright © 2017. All rights reserved.