org.jsmpp.session.SendCommandTask Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.jsmpp.session;
import java.io.IOException;
import java.io.OutputStream;
import org.jsmpp.PDUException;
/**
* Task for sending SMPP command.
*
* @author uudashr
*
*/
public interface SendCommandTask {
/**
* Executing the task.
*
* @param out is the output stream.
* @param sequenceNumber is the sequence number.
* @throws PDUException if there is an invalid PDU parameter found.
* @throws IOException if there is an IO error found.
*/
void executeTask(OutputStream out, int sequenceNumber)
throws PDUException, IOException;
/**
* It should be like submit_sm, deliver_sm, query_sm, data_sm, etc.
*
* @return the command name.
*/
String getCommandName();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy