| Package | Description |
|---|---|
| net.tomp2p.futures | |
| net.tomp2p.p2p | |
| net.tomp2p.p2p.builder | |
| net.tomp2p.utils |
| Modifier and Type | Class and Description |
|---|---|
class |
BaseFutureAdapter<F extends BaseFuture>
The
BaseFuture always completes either successfully or failed. |
class |
BaseFutureImpl<K extends BaseFuture>
The base for all BaseFuture implementations.
|
interface |
BaseFutureListener<F extends BaseFuture>
Something interested in being notified when the result of an
BaseFuture becomes available. |
interface |
FutureCreator<K extends BaseFuture>
For direct replication, the DHT needs to be created repeatedly.
|
class |
FutureForkJoin<K extends BaseFuture>
The key future for recursive loops.
|
class |
FutureLateJoin<K extends BaseFuture>
FutureLateJoin is similar to FutureForkJoin.
|
class |
FutureLaterJoin<K extends BaseFuture>
FutureLaterJoin is similar to FutureLateJoin.
|
class |
FutureWrappedBootstrap<K extends BaseFuture>
The bootstrap will be a wrapped future, because we need to ping a server
first, and if this ping is successful, we can bootstrap.
|
class |
FutureWrapper<K extends BaseFuture>
Wraps a future into an other future.
|
class |
FutureWrapper2<K extends BaseFuture,J extends BaseFuture>
Wraps a future into an other future.
|
class |
FutureWrapper2<K extends BaseFuture,J extends BaseFuture>
Wraps a future into an other future.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
FutureBootstrap
Used for bootstrapping.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BaseFutureImpl<K extends BaseFuture>
The base for all BaseFuture implementations.
|
class |
FutureAnnounce |
class |
FutureAsyncTask
A future to keep track of a future task.
|
class |
FutureChannelCreator
This future is used for the connection reservation.
|
class |
FutureDirect |
class |
FutureDiscover
The future that keeps track of network discovery such as discovery if its behind a NAT, the status if UPNP or NAT-PMP
could be established, if there is portforwarding.
|
class |
FutureDone<K>
A generic future that can be used to set a future to complete with an attachment.
|
class |
FutureForkJoin<K extends BaseFuture>
The key future for recursive loops.
|
class |
FutureLateJoin<K extends BaseFuture>
FutureLateJoin is similar to FutureForkJoin.
|
class |
FutureLaterJoin<K extends BaseFuture>
FutureLaterJoin is similar to FutureLateJoin.
|
class |
FuturePeerConnection |
class |
FuturePing |
class |
FutureProgres<K>
A generic future that can be used to set a future to complete with an attachement.
|
class |
FutureResponse
Each response has one request messages.
|
class |
FutureRouting
The routing future keeps track of the routing process.
|
class |
FutureShutdown |
class |
FutureTask
This future keeps track of one or more tasks send to remote peers.
|
class |
FutureWrappedBootstrap<K extends BaseFuture>
The bootstrap will be a wrapped future, because we need to ping a server
first, and if this ping is successful, we can bootstrap.
|
class |
FutureWrapper<K extends BaseFuture>
Wraps a future into an other future.
|
class |
FutureWrapper2<K extends BaseFuture,J extends BaseFuture>
Wraps a future into an other future.
|
| Modifier and Type | Method and Description |
|---|---|
BaseFuture |
BaseFuture.addCancel(Cancel cancel)
Adds a cancel listener to this future, which is called when cancel is executed.
|
BaseFuture |
BaseFuture.addListener(BaseFutureListener<? extends BaseFuture> listener)
Adds a listener which is notified when the state of this future changes.
|
BaseFuture |
BaseFuture.addListener(BaseFutureListener<? extends BaseFuture> listener,
boolean last)
Adds a listener which is notified when the state of this future changes.
|
BaseFuture |
BaseFuture.await()
Wait for the asynchronous operation to end.
|
BaseFuture |
BaseFuture.awaitListeners()
Waits until all the listener finished.
|
BaseFuture |
BaseFuture.awaitListenersUninterruptibly()
Waits uninterruptedly until all the listener finished.
|
BaseFuture |
BaseFuture.awaitUninterruptibly()
Wait for the asynchronous operation to end without interruption.
|
BaseFuture |
BaseFuture.failed(BaseFuture origin)
Sets the failed flag to true and the completed flag to true.
|
BaseFuture |
BaseFuture.failed(String reason)
Sets the failed flag to true and the completed flag to true.
|
BaseFuture |
BaseFuture.failed(String reason,
BaseFuture origin)
Sets the failed flag to true and the completed flag to true.
|
BaseFuture |
BaseFuture.failed(String reason,
Throwable t)
Sets the failed flag to true and the completed flag to true.
|
BaseFuture |
BaseFuture.failed(Throwable t)
Sets the failed flag to true and the completed flag to true.
|
BaseFuture |
BaseFuture.removeCancel(Cancel cancel)
Removes a cancel listener to this future.
|
BaseFuture |
BaseFuture.removeListener(BaseFutureListener<? extends BaseFuture> listener)
Removes a listener which is notified when the state of this future changes.
|
| Modifier and Type | Method and Description |
|---|---|
BaseFuture |
BaseFuture.failed(BaseFuture origin)
Sets the failed flag to true and the completed flag to true.
|
K |
BaseFutureImpl.failed(BaseFuture origin) |
BaseFuture |
BaseFuture.failed(String reason,
BaseFuture origin)
Sets the failed flag to true and the completed flag to true.
|
K |
BaseFutureImpl.failed(String failed,
BaseFuture origin) |
| Modifier and Type | Method and Description |
|---|---|
BaseFuture |
BaseFuture.addListener(BaseFutureListener<? extends BaseFuture> listener)
Adds a listener which is notified when the state of this future changes.
|
K |
BaseFutureImpl.addListener(BaseFutureListener<? extends BaseFuture> listener) |
BaseFuture |
BaseFuture.addListener(BaseFutureListener<? extends BaseFuture> listener,
boolean last)
Adds a listener which is notified when the state of this future changes.
|
K |
BaseFutureImpl.addListener(BaseFutureListener<? extends BaseFuture> listener,
boolean last) |
BaseFuture |
BaseFuture.removeListener(BaseFutureListener<? extends BaseFuture> listener)
Removes a listener which is notified when the state of this future changes.
|
K |
BaseFutureImpl.removeListener(BaseFutureListener<? extends BaseFuture> listener) |
| Modifier and Type | Method and Description |
|---|---|
BaseFuture |
Peer.shutdown()
Shuts down everything.
|
BaseFuture |
Shutdown.shutdown() |
| Modifier and Type | Method and Description |
|---|---|
void |
AutomaticFuture.futureCreated(BaseFuture future)
Call this method when a future has been created without any user interaction.
|
Peer |
Peer.notifyAutomaticFutures(BaseFuture future) |
| Modifier and Type | Method and Description |
|---|---|
BaseFuture |
Builder.start() |
| Modifier and Type | Method and Description |
|---|---|
PingBuilder |
PingBuilder.notifyAutomaticFutures(BaseFuture future) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Utils.addReleaseListener(ChannelCreator channelCreator,
BaseFuture... baseFutures)
Adds a listener to the response future and releases all aquired channels in channel creator.
|
static void |
Utils.addReleaseListener(FutureChannelCreator fcc,
BaseFuture baseFuture) |
Copyright © 2014. All rights reserved.