Package septogeddon.pluginquery
Class QueryPipelineImpl
java.lang.Object
septogeddon.pluginquery.QueryPipelineImpl
- All Implemented Interfaces:
QueryPipeline
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
addAfter
(String after, QueryChannelHandler handler) Add handler after another handlerboolean
addBefore
(String before, QueryChannelHandler handler) Add handler before another handlerboolean
addFirst
(QueryChannelHandler handler) Add handler at the first indexboolean
addLast
(QueryChannelHandler handler) Add handler at the last indexvoid
dispatchActive
(QueryConnection connection) CallQueryChannelHandler.onActive(QueryConnection)
on all handlersvoid
dispatchInactive
(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 handlersvoid
dispatchUncaughtException
(QueryConnection connection, Throwable thrown) CallQueryChannelHandler.onCaughtException(QueryConnection, Throwable)
on all handlersint
first()
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 handlerboolean
Remove handler from pipelineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface septogeddon.pluginquery.api.QueryPipeline
addFirst, addLast, remove
-
Constructor Details
-
QueryPipelineImpl
public QueryPipelineImpl()
-
-
Method Details
-
findPos
-
remove
Description copied from interface:QueryPipeline
Remove handler from pipeline- Specified by:
remove
in interfaceQueryPipeline
- Parameters:
str
-- Returns:
-
addFirst
Description copied from interface:QueryPipeline
Add handler at the first index- Specified by:
addFirst
in interfaceQueryPipeline
- Parameters:
handler
-- Returns:
-
addBefore
Description copied from interface:QueryPipeline
Add handler before another handler- Specified by:
addBefore
in interfaceQueryPipeline
- Parameters:
before
-handler
-- Returns:
-
addAfter
Description copied from interface:QueryPipeline
Add handler after another handler- Specified by:
addAfter
in interfaceQueryPipeline
- Parameters:
after
-handler
-- Returns:
-
addLast
Description copied from interface:QueryPipeline
Add handler at the last index- Specified by:
addLast
in interfaceQueryPipeline
- Parameters:
handler
-- Returns:
-
get
Description copied from interface:QueryPipeline
Get handler by name- Specified by:
get
in interfaceQueryPipeline
- Type Parameters:
T
-- Parameters:
key
-- Returns:
-
dispatchActive
Description copied from interface:QueryPipeline
CallQueryChannelHandler.onActive(QueryConnection)
on all handlers- Specified by:
dispatchActive
in interfaceQueryPipeline
- Parameters:
connection
-
-
dispatchInactive
Description copied from interface:QueryPipeline
CallQueryChannelHandler.onInactive(QueryConnection)
on all handlers- Specified by:
dispatchInactive
in interfaceQueryPipeline
- Parameters:
connection
-
-
dispatchSending
Description copied from interface:QueryPipeline
CallQueryChannelHandler.onSending(QueryConnection, byte[])
on all handlers- Specified by:
dispatchSending
in interfaceQueryPipeline
- Parameters:
connection
-bytes
-- Returns:
- modified byte
-
dispatchReceiving
Description copied from interface:QueryPipeline
CallQueryChannelHandler.onReceiving(QueryConnection, byte[])
on all handlers- Specified by:
dispatchReceiving
in interfaceQueryPipeline
- Parameters:
connection
-bytes
-- Returns:
- modified byte
-
dispatchUncaughtException
Description copied from interface:QueryPipeline
CallQueryChannelHandler.onCaughtException(QueryConnection, Throwable)
on all handlers- Specified by:
dispatchUncaughtException
in interfaceQueryPipeline
- Parameters:
connection
-thrown
-
-
nextHandler
Description copied from interface:QueryPipeline
Find the handler next to this handler- Specified by:
nextHandler
in interfaceQueryPipeline
- Parameters:
of
-- Returns:
-
first
Description copied from interface:QueryPipeline
The first handler on this pipeline- Specified by:
first
in interfaceQueryPipeline
- Returns:
-
last
Description copied from interface:QueryPipeline
The last handler on this pipeline- Specified by:
last
in interfaceQueryPipeline
- Returns:
-
getPipes
Description copied from interface:QueryPipeline
Get all handlers- Specified by:
getPipes
in interfaceQueryPipeline
- Returns:
-