protected class SLSLogFacility.WorkerRequest
extends java.lang.Object
A request contains a command identifier, which tells the worker thread what action to perform, and message specifications if the command is to log a message.
Modifier and Type | Field and Description |
---|---|
int |
cmd
Command identifier of this request.
|
static int |
CMD_EXIT
Instructs the worker thread to exit its
run method. |
static int |
CMD_LOG
Instructs the worker thread to log a message.
|
java.lang.String |
desc
Additional description to log.
|
java.lang.String |
msg
The message to log.
|
int |
msgType
The message type.
|
Constructor and Description |
---|
WorkerRequest(int c)
Creates a
WorkerRequest without message spec. |
WorkerRequest(int c,
java.lang.String m,
java.lang.String d,
int mt)
Creates a
WorkerRequest |
public static final int CMD_EXIT
run
method.public static final int CMD_LOG
public int cmd
CMD
constants.public java.lang.String msg
public java.lang.String desc
public int msgType
public WorkerRequest(int c, java.lang.String m, java.lang.String d, int mt)
WorkerRequest
c
- the command identifier. One of the CMD
constants.m
- the message to log.d
- additional description to log.t
- the message type.public WorkerRequest(int c)
WorkerRequest
without message spec.
This constructor is used to create non-LOG request.
c
- the command identifier. One of the CMD
constants.Copyright © SAS Institute. All Rights Reserved.