Module org.glassfish.grizzly
Class UDPNIOTransportFilter
java.lang.Object
org.glassfish.grizzly.filterchain.BaseFilter
org.glassfish.grizzly.nio.transport.UDPNIOTransportFilter
- All Implemented Interfaces:
Filter
The
UDPNIOTransport's transport Filter implementation- Author:
- Alexey Stashok
-
Method Summary
Modifier and TypeMethodDescriptionvoidexceptionOccurred(FilterChainContext ctx, Throwable error) Notification about exception, occurred on theFilterChainhandleEvent(FilterChainContext ctx, FilterChainEvent event) Handle custom event associated with theConnection.Execute a unit of processing work to be performed, when channel will become available for reading.Execute a unit of processing work to be performed, when some data should be written on channel.Methods inherited from class org.glassfish.grizzly.filterchain.BaseFilter
createContext, handleAccept, handleClose, handleConnect, onAdded, onFilterChainChanged, onRemoved, toString
-
Method Details
-
handleRead
Description copied from class:BaseFilterExecute a unit of processing work to be performed, when channel will become available for reading. ThisFiltermay either complete the required processing and return false, or delegate remaining processing to the nextFilterin aFilterChaincontaining thisFilterby returning true.- Specified by:
handleReadin interfaceFilter- Overrides:
handleReadin classBaseFilter- Parameters:
ctx-FilterChainContext- Returns:
NextActioninstruction forFilterChain, how it should continue the execution- Throws:
IOException
-
handleWrite
Description copied from class:BaseFilterExecute a unit of processing work to be performed, when some data should be written on channel. ThisFiltermay either complete the required processing and return false, or delegate remaining processing to the nextFilterin aFilterChaincontaining thisFilterby returning true.- Specified by:
handleWritein interfaceFilter- Overrides:
handleWritein classBaseFilter- Parameters:
ctx-FilterChainContext- Returns:
NextActioninstruction forFilterChain, how it should continue the execution- Throws:
IOException
-
handleEvent
Description copied from class:BaseFilterHandle custom event associated with theConnection. ThisFiltermay either complete the required processing and returnStopAction, or delegate remaining processing to the nextFilterin aFilterChaincontaining thisFilterby returningInvokeAction.- Specified by:
handleEventin interfaceFilter- Overrides:
handleEventin classBaseFilter- Parameters:
ctx-FilterChainContext- Returns:
NextActioninstruction forFilterChain, how it should continue the execution- Throws:
IOException
-
exceptionOccurred
Description copied from class:BaseFilterNotification about exception, occurred on theFilterChain- Specified by:
exceptionOccurredin interfaceFilter- Overrides:
exceptionOccurredin classBaseFilter- Parameters:
ctx- event processingFilterChainContexterror- error, which occurred during FilterChain execution
-