public class BufferOrEvent extends Object
Buffer
or AbstractEvent
instances tagged with the channel index,
from which they were received.Constructor and Description |
---|
BufferOrEvent(AbstractEvent event,
boolean hasPriority,
InputChannelInfo channelInfo,
boolean moreAvailable,
int size,
boolean morePriorityEvents) |
BufferOrEvent(AbstractEvent event,
InputChannelInfo channelInfo) |
BufferOrEvent(Buffer buffer,
InputChannelInfo channelInfo) |
BufferOrEvent(Buffer buffer,
InputChannelInfo channelInfo,
boolean moreAvailable,
boolean morePriorityEvents) |
Modifier and Type | Method and Description |
---|---|
Buffer |
getBuffer() |
InputChannelInfo |
getChannelInfo() |
AbstractEvent |
getEvent() |
int |
getSize() |
boolean |
hasPriority() |
boolean |
isBuffer() |
boolean |
isEvent() |
boolean |
moreAvailable() |
boolean |
morePriorityEvents() |
void |
setChannelInfo(InputChannelInfo channelInfo) |
void |
setMoreAvailable(boolean moreAvailable) |
String |
toString() |
public BufferOrEvent(Buffer buffer, InputChannelInfo channelInfo, boolean moreAvailable, boolean morePriorityEvents)
public BufferOrEvent(AbstractEvent event, boolean hasPriority, InputChannelInfo channelInfo, boolean moreAvailable, int size, boolean morePriorityEvents)
@VisibleForTesting public BufferOrEvent(Buffer buffer, InputChannelInfo channelInfo)
@VisibleForTesting public BufferOrEvent(AbstractEvent event, InputChannelInfo channelInfo)
public boolean isBuffer()
public boolean isEvent()
public Buffer getBuffer()
public AbstractEvent getEvent()
public InputChannelInfo getChannelInfo()
public void setChannelInfo(InputChannelInfo channelInfo)
public boolean moreAvailable()
public boolean morePriorityEvents()
public void setMoreAvailable(boolean moreAvailable)
public int getSize()
public boolean hasPriority()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.