public interface JobFactory extends AutoCloseable
Job
.Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_KEY_EXECUTION_TIMEOUT
Deprecated.
please use
Job.apply(com.levigo.jadice.server.Limit)
with a TimeLimit instead. If a
job has a TimeLimit, the TimeLimit will take precedence over
the limit set using this property. This property, however, will
continue to be available. |
Modifier and Type | Method and Description |
---|---|
void |
adopt(com.levigo.jadice.server.client.internal.DefaultJobInternalImpl job) |
void |
close()
Closes this
JobFactory and releases all resources held by it. |
void |
connect()
Performs all actions that are required before
Job s can be created |
Job |
createJob()
Create a job with the defaults as defined by the particular JobFactory
implementation.
|
@Deprecated static final String PROPERTY_KEY_EXECUTION_TIMEOUT
Job.apply(com.levigo.jadice.server.Limit)
with a TimeLimit
instead. If a
job has a TimeLimit, the TimeLimit will take precedence over
the limit set using this property. This property, however, will
continue to be available.If this property isn't set, a default value is chosen by the server
void connect() throws ConnectionException
Job
s can be createdConnectionException
- if the connection to the underlying communication infrastructure
could not be establishedvoid close()
Closes this JobFactory
and releases all resources held by it.
connect()
again is implementation specific. See
the javadoc of the concrete implementation.
close
in interface AutoCloseable
Job createJob() throws JobException
JobException
void adopt(com.levigo.jadice.server.client.internal.DefaultJobInternalImpl job) throws JobException
JobException
Copyright © 2017 levigo holding gmbh. All rights reserved.