InterceptableChannel

A {@link hunt.stomp.MessageChannel MessageChannel} that maintains a list {@link hunt.stomp.support.ChannelInterceptor ChannelInterceptors} and allows interception of message sending.

@author Rossen Stoyanchev @since 4.1

Members

Functions

addInterceptor
void addInterceptor(ChannelInterceptor interceptor)

Add a channel interceptor to the end of the list.

addInterceptor
void addInterceptor(int index, ChannelInterceptor interceptor)

Add a channel interceptor at the specified index.

getInterceptors
List!(ChannelInterceptor) getInterceptors()

Return the list of configured interceptors.

removeInterceptor
bool removeInterceptor(ChannelInterceptor interceptor)

Remove the given interceptor.

removeInterceptor
ChannelInterceptor removeInterceptor(int index)

Remove the interceptor at the given index.

setInterceptors
void setInterceptors(ChannelInterceptor[] interceptors)

Set the list of channel interceptors clearing any existing interceptors.

Meta