Package septogeddon.pluginquery
Class QueryPipelineImpl
java.lang.Object
septogeddon.pluginquery.QueryPipelineImpl
- All Implemented Interfaces:
QueryPipeline
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAfter(String after, QueryChannelHandler handler) Add handler after another handlerbooleanaddBefore(String before, QueryChannelHandler handler) Add handler before another handlerbooleanaddFirst(QueryChannelHandler handler) Add handler at the first indexbooleanaddLast(QueryChannelHandler handler) Add handler at the last indexvoiddispatchActive(QueryConnection connection) CallQueryChannelHandler.onActive(QueryConnection)on all handlersvoiddispatchInactive(QueryConnection connection) CallQueryChannelHandler.onInactive(QueryConnection)on all handlersbyte[]dispatchReceiving(QueryConnection connection, byte[] bytes) CallQueryChannelHandler.onReceiving(QueryConnection, byte[])on all handlersbyte[]dispatchSending(QueryConnection connection, byte[] bytes) CallQueryChannelHandler.onSending(QueryConnection, byte[])on all handlersvoiddispatchUncaughtException(QueryConnection connection, Throwable thrown) CallQueryChannelHandler.onCaughtException(QueryConnection, Throwable)on all handlersintfirst()The first handler on this pipeline<T extends QueryChannelHandler>
TGet handler by nameCollection<? extends QueryChannelHandler> getPipes()Get all handlerslast()The last handler on this pipelineFind the handler next to this handlerbooleanRemove handler from pipelineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface septogeddon.pluginquery.api.QueryPipeline
addFirst, addLast, remove
-
Constructor Details
-
QueryPipelineImpl
public QueryPipelineImpl()
-
-
Method Details
-
findPos
-
remove
Description copied from interface:QueryPipelineRemove handler from pipeline- Specified by:
removein interfaceQueryPipeline- Parameters:
str-- Returns:
-
addFirst
Description copied from interface:QueryPipelineAdd handler at the first index- Specified by:
addFirstin interfaceQueryPipeline- Parameters:
handler-- Returns:
-
addBefore
Description copied from interface:QueryPipelineAdd handler before another handler- Specified by:
addBeforein interfaceQueryPipeline- Parameters:
before-handler-- Returns:
-
addAfter
Description copied from interface:QueryPipelineAdd handler after another handler- Specified by:
addAfterin interfaceQueryPipeline- Parameters:
after-handler-- Returns:
-
addLast
Description copied from interface:QueryPipelineAdd handler at the last index- Specified by:
addLastin interfaceQueryPipeline- Parameters:
handler-- Returns:
-
get
Description copied from interface:QueryPipelineGet handler by name- Specified by:
getin interfaceQueryPipeline- Type Parameters:
T-- Parameters:
key-- Returns:
-
dispatchActive
Description copied from interface:QueryPipelineCallQueryChannelHandler.onActive(QueryConnection)on all handlers- Specified by:
dispatchActivein interfaceQueryPipeline- Parameters:
connection-
-
dispatchInactive
Description copied from interface:QueryPipelineCallQueryChannelHandler.onInactive(QueryConnection)on all handlers- Specified by:
dispatchInactivein interfaceQueryPipeline- Parameters:
connection-
-
dispatchSending
Description copied from interface:QueryPipelineCallQueryChannelHandler.onSending(QueryConnection, byte[])on all handlers- Specified by:
dispatchSendingin interfaceQueryPipeline- Parameters:
connection-bytes-- Returns:
- modified byte
-
dispatchReceiving
Description copied from interface:QueryPipelineCallQueryChannelHandler.onReceiving(QueryConnection, byte[])on all handlers- Specified by:
dispatchReceivingin interfaceQueryPipeline- Parameters:
connection-bytes-- Returns:
- modified byte
-
dispatchUncaughtException
Description copied from interface:QueryPipelineCallQueryChannelHandler.onCaughtException(QueryConnection, Throwable)on all handlers- Specified by:
dispatchUncaughtExceptionin interfaceQueryPipeline- Parameters:
connection-thrown-
-
nextHandler
Description copied from interface:QueryPipelineFind the handler next to this handler- Specified by:
nextHandlerin interfaceQueryPipeline- Parameters:
of-- Returns:
-
first
Description copied from interface:QueryPipelineThe first handler on this pipeline- Specified by:
firstin interfaceQueryPipeline- Returns:
-
last
Description copied from interface:QueryPipelineThe last handler on this pipeline- Specified by:
lastin interfaceQueryPipeline- Returns:
-
getPipes
Description copied from interface:QueryPipelineGet all handlers- Specified by:
getPipesin interfaceQueryPipeline- Returns:
-