public class ResponseEventFactory extends Object
Modifier and Type | Method and Description |
---|---|
CancelledResponseEvent |
createCancelResponseEvent()
Create a CancelledResponseEvent.
|
ChannelErrorResponseEvent |
createChannelErrorResponseEvent(Throwable cause)
Create a ChannelErrorResponseEvent.
|
DataResponseEvent |
createDataResponseEvent(DataBuffer dataBuffer)
Create a DataResponseEvent.
|
EofResponseEvent |
createEofResponseEvent()
Create an EofResponseEvent.
|
ServerErrorResponseEvent |
createServerErrorResponseEvent(AlluxioStatusException alluxioStatusException)
Create a ServerErrorResponseEvent.
|
UfsReadHeartBeatResponseEvent |
createUfsReadHeartBeatResponseEvent()
Create an UfsReadHeartBeatResponseEvent.
|
static ResponseEventFactory |
getResponseEventFactory()
Get a response event factory.
|
public static ResponseEventFactory getResponseEventFactory()
public CancelledResponseEvent createCancelResponseEvent()
public DataResponseEvent createDataResponseEvent(DataBuffer dataBuffer)
dataBuffer
- public EofResponseEvent createEofResponseEvent()
public UfsReadHeartBeatResponseEvent createUfsReadHeartBeatResponseEvent()
public ServerErrorResponseEvent createServerErrorResponseEvent(AlluxioStatusException alluxioStatusException)
alluxioStatusException
- the alluxio status exceptionpublic ChannelErrorResponseEvent createChannelErrorResponseEvent(Throwable cause)
cause
- the throwable objectCopyright © 2023. All Rights Reserved.