/* package */ final void sendMessage() throws LDAPException { if (Debug.LDAP_DEBUG) { Debug.trace(Debug.messages, name + "Sending request to " + conn.getConnectionName()); } conn.writeMessage(this); // Start the timer thread if (mslimit != 0) { // Don't start the timer thread for abandon or Unbind switch (msg.getType()) { case LDAPMessage.ABANDON_REQUEST: case LDAPMessage.UNBIND_REQUEST: mslimit = 0; break; default: // start the timer thread timer = new Timeout(mslimit, this); timer.setDaemon(true); // If this is the last thread running, allow exit. timer.start(); break; } } return; }
/* package */ int getMessageType() { if (msg == null) { return -1; } return msg.getType(); }