Class SingletonRandomFactory
java.lang.Object
org.apache.sshd.common.random.AbstractRandom
org.apache.sshd.common.random.SingletonRandomFactory
- All Implemented Interfaces:
Supplier<Random>, BuiltinFactory<Random>, Factory<Random>, NamedFactory<Random>, NamedResource, OptionalFeature, Random, RandomFactory
A random factory wrapper that uses a single random instance. The underlying random instance has to be thread safe.
-
Field Summary
FieldsFields inherited from interface NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTORFields inherited from interface OptionalFeature
FALSE, TRUE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractRandom
toString
-
Field Details
-
factory
-
random
-
-
Constructor Details
-
SingletonRandomFactory
-
-
Method Details
-
isSupported
public boolean isSupported()- Specified by:
isSupportedin interfaceOptionalFeature
-
fill
-
random
-
getName
- Specified by:
getNamein interfaceNamedResource- Returns:
- The resource name
-
create
-