GigaSpaces XAP 9.7.2 API

Class ThreadPoolPermission

  extended by
      extended by
          extended by com.sun.jini.thread.ThreadPoolPermission
All Implemented Interfaces:
Serializable, Guard

public final class ThreadPoolPermission
extends BasicPermission

Permission to use internal thread pools (see GetThreadPoolAction). A ThreadPoolPermission contains a name (also referred to as a "target name") but no action list; you either have the named permission or you don't. ThreadPoolPermission defines two target names, "getSystemThreadPool" and "getUserThreadPool", for permission to get the system thread group pool and permission to get the non-system thread group pool. A ThreadPoolPermission implies the following: - permission to access the thread group designated by the target name; see SecurityManager.checkAccess(ThreadGroup) - permission to execute a NewThreadAction, which requires RuntimePermission("getClassLoader") and RuntimePermission("setContextClassLoader"); more practically, this is permission to have a Runnable executed with the system class loader as the context class loader - permission to execute a Runnable without the caller's protection domain in force

Sun Microsystems, Inc.
See Also:
Serialized Form

Constructor Summary
ThreadPoolPermission(String name)
          Creates a new ThreadPoolPermission with the specified name.
Method Summary
Methods inherited from class
equals, getActions, hashCode, implies, newPermissionCollection
Methods inherited from class
checkGuard, getName, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Detail


public ThreadPoolPermission(String name)
Creates a new ThreadPoolPermission with the specified name.

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.