Class Channel<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<E>
-
- java.util.concurrent.LinkedBlockingQueue<E>
-
- org.hyperledger.fabric.shim.helper.Channel<E>
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class Channel<E> extends java.util.concurrent.LinkedBlockingQueue<E> implements java.io.Closeable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Channel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(E e)
void
close()
E
take()
-
Methods inherited from interface java.util.Collection
addAll, containsAll, equals, hashCode, isEmpty, parallelStream, stream
-
Methods inherited from class java.util.concurrent.LinkedBlockingQueue
clear, contains, drainTo, drainTo, forEach, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, remove, removeAll, removeIf, retainAll, size, spliterator, toArray, toArray, toString
-
-
-
-
Method Detail
-
take
public E take() throws java.lang.InterruptedException
- Overrides:
take
in classjava.util.concurrent.LinkedBlockingQueue<E>
- Throws:
java.lang.InterruptedException
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-