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,
int channelIndex) |
BufferOrEvent(AbstractEvent event,
int channelIndex,
boolean moreAvailable,
int size) |
BufferOrEvent(Buffer buffer,
int channelIndex) |
BufferOrEvent(Buffer buffer,
int channelIndex,
boolean moreAvailable) |
Modifier and Type | Method and Description |
---|---|
Buffer |
getBuffer() |
int |
getChannelIndex() |
AbstractEvent |
getEvent() |
int |
getSize() |
boolean |
isBuffer() |
boolean |
isEvent() |
void |
setChannelIndex(int channelIndex) |
void |
setMoreAvailable(boolean moreAvailable) |
String |
toString() |
public BufferOrEvent(Buffer buffer, int channelIndex, boolean moreAvailable)
public BufferOrEvent(AbstractEvent event, int channelIndex, boolean moreAvailable, int size)
@VisibleForTesting public BufferOrEvent(Buffer buffer, int channelIndex)
@VisibleForTesting public BufferOrEvent(AbstractEvent event, int channelIndex)
public boolean isBuffer()
public boolean isEvent()
public Buffer getBuffer()
public AbstractEvent getEvent()
public int getChannelIndex()
public void setChannelIndex(int channelIndex)
public void setMoreAvailable(boolean moreAvailable)
public int getSize()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.