Package org.jgroups.util

Provides useful functionality which cannot be assigned to any particular other package.

Interface Summary

Command The Command patttern (see Gamma et al.).
SchedulerListener Provides callback for use with a Scheduler.
Streamable Implementations of Streamable can add their state directly to the output stream, enabling them to bypass costly serialization
TimeScheduler.CancellableTask
TimeScheduler.Task The interface that submitted tasks must implement

Class Summary

AckCollector
BoundedList A bounded subclass of List, oldest elements are removed once max capacity is exceeded
Buffer Buffer with an offset and length.
CondVar Class that checks on a condition and - if condition doesn't match the expected result - waits until the result matches the expected result, or a timeout occurs.
ContextObjectInputStream ObjectInputStream which sets a contact classloader for reading bytes into objects.
ExposedBufferedInputStream
ExposedBufferedOutputStream
ExposedByteArrayInputStream
ExposedByteArrayOutputStream Extends ByteArrayOutputStream, but exposes the internal buffer.
ExposedDataOutputStream
GetNetworkInterfaces Lists all network interfaces on a system
LinkedListQueue LinkedListQueue implementation based on java.util.Queue.
List Doubly-linked list.
MagicObjectInputStream Uses magic numbers for class descriptors
MagicObjectOutputStream Uses magic numbers for class descriptors
Marshaller Title: JGroups Communications Description: Contact me at mail@filip.net Copyright: Copyright (c) 2002 Company: www.filip.net
NullReadWriteLock
NullSync
PrintXMLTree Title: JGroups Communications Description: Contact me at filip@filip.net Copyright: Copyright (c) 2002 Company: www.filip.net
Promise Allows a thread to submit an asynchronous request and to wait for the result.
Proxy Redirects incoming TCP connections to other hosts/ports.
Queue Elements are added at the tail and removed from the head.
Queue2 Elements are added at the tail and removed from the head.
QueueClosedException
Range
ReentrantLatch Enables safely locking and unlocking a shared resource, without blocking the calling threads.
ReusableThread Reusable thread class.
Rsp class that represents a response from a communication
RspList Contains responses from all members.
Scheduler Implementation of a priority scheduler.
Scheduler.Task
Stack LIFO stack, with better performance than java.util.Stack (based on List).
ThreadPool Maintains a set of ReusableThreads.
TimedWriterWaits until the buffer has been written to the output stream, or until timeout msecs have elapsed, whichever comes first.
TimeScheduler Fixed-delay & fixed-rate single thread scheduler

The scheduler supports varying scheduling intervals by asking the task every time for its next preferred scheduling interval.

Util Collection of various utility routines that can not be assigned to other classes.
Provides useful functionality which cannot be assigned to any particular other package.

Copyright B) 1998-2005 Bela Ban. All Rights Reserved.