Class RadiusClient.ResponseFuture<V>
java.lang.Object
java.util.concurrent.FutureTask<V>
ru.bitel.bgbilling.kernel.network.radius.RadiusClient.ResponseFuture<V>
- All Implemented Interfaces:
java.lang.Runnable,java.util.concurrent.Future<V>,java.util.concurrent.RunnableFuture<V>
- Enclosing class:
- RadiusClient
public static final class RadiusClient.ResponseFuture<V>
extends java.util.concurrent.FutureTask<V>
-
Constructor Summary
Constructors Constructor Description ResponseFuture(java.util.concurrent.Callable<V> callable, java.util.Date time, int deviceId, long connectionId, int connectionLogEntryId) -
Method Summary
Modifier and Type Method Description protected voiddone()RadiusPacketgetResponse()RadiusPacketgetResponse(long timeout, java.util.concurrent.TimeUnit unit)voidset(V v)Methods inherited from class java.util.concurrent.FutureTask
cancel, get, get, isCancelled, isDone, run, runAndReset, setException, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ResponseFuture
public ResponseFuture(java.util.concurrent.Callable<V> callable, java.util.Date time, int deviceId, long connectionId, int connectionLogEntryId)
-
-
Method Details
-
done
protected void done()- Overrides:
donein classjava.util.concurrent.FutureTask<V>
-
set
- Overrides:
setin classjava.util.concurrent.FutureTask<V>
-
getResponse
public RadiusPacket getResponse() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException- Throws:
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionException
-
getResponse
public RadiusPacket getResponse(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException- Throws:
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.util.concurrent.TimeoutException
-