abstract class SocketReceiveBuffer extends LinkedList<DatagramPacket>
Modifier and Type | Field and Description |
---|---|
private static int |
DEFAULT_RECEIVE_BUFFER_SIZE |
private int |
receiveBufferSize
The value of the SO_RCVBUF option for the associated
DatagramSocket or Socket.
|
private static long |
serialVersionUID |
private int |
size
The (total) size in bytes of this receive buffer.
|
modCount
Constructor and Description |
---|
SocketReceiveBuffer() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(DatagramPacket p) |
abstract int |
getReceiveBufferSize()
Gets the value of the SO_RCVBUF option for the associated
DatagramSocket or Socket which is the buffer size used
by the platform for input on the DatagramSocket or
Socket.
|
DatagramPacket |
remove(int index) |
add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
iterator
equals, hashCode, listIterator, removeRange, subList
containsAll, isEmpty, removeAll, retainAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
parallelStream, removeIf, stream
private static final int DEFAULT_RECEIVE_BUFFER_SIZE
private static final long serialVersionUID
private int receiveBufferSize
private int size
public boolean add(DatagramPacket p)
add
in interface Collection<DatagramPacket>
add
in interface Deque<DatagramPacket>
add
in interface List<DatagramPacket>
add
in interface Queue<DatagramPacket>
add
in class LinkedList<DatagramPacket>
public abstract int getReceiveBufferSize() throws SocketException
SocketException
- if there is an error in the underlying protocolpublic DatagramPacket remove(int index)
remove
in interface List<DatagramPacket>
remove
in class LinkedList<DatagramPacket>
Copyright © 2018. All rights reserved.