org.archive.hcc.util.jmx
Class MBeanFutureTask
java.lang.Object
org.archive.hcc.util.jmx.MBeanFutureTask
- All Implemented Interfaces:
- java.io.Serializable, java.util.concurrent.Future, java.util.EventListener, javax.management.NotificationFilter, javax.management.NotificationListener
public class MBeanFutureTask
- extends java.lang.Object
- implements javax.management.NotificationListener, javax.management.NotificationFilter, java.util.concurrent.Future, java.io.Serializable
- See Also:
- Serialized Form
Method Summary |
boolean |
cancel(boolean mayInterruptIfRunning)
|
java.lang.Object |
get()
|
java.lang.Object |
get(long timeout,
java.util.concurrent.TimeUnit unit)
|
void |
handleNotification(javax.management.Notification notification,
java.lang.Object handback)
|
boolean |
isCancelled()
|
boolean |
isDone()
|
boolean |
isNotificationEnabled(javax.management.Notification notification)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBeanFutureTask
public MBeanFutureTask(java.lang.String name)
isNotificationEnabled
public boolean isNotificationEnabled(javax.management.Notification notification)
- Specified by:
isNotificationEnabled
in interface javax.management.NotificationFilter
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interface java.util.concurrent.Future
isDone
public boolean isDone()
- Specified by:
isDone
in interface java.util.concurrent.Future
handleNotification
public void handleNotification(javax.management.Notification notification,
java.lang.Object handback)
- Specified by:
handleNotification
in interface javax.management.NotificationListener
cancel
public boolean cancel(boolean mayInterruptIfRunning)
- Specified by:
cancel
in interface java.util.concurrent.Future
get
public java.lang.Object get()
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException
- Specified by:
get
in interface java.util.concurrent.Future
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
get
public java.lang.Object get(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.util.concurrent.TimeoutException
- Specified by:
get
in interface java.util.concurrent.Future
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
Copyright © 2005-2008 The Internet Archive. All Rights Reserved.