https://github.com/spapageo/jannel
Asynchronous high throughput kannel client written in Java
https://github.com/spapageo/jannel
asynchronous futures guava java kannel netty
Last synced: 4 days ago
JSON representation
Asynchronous high throughput kannel client written in Java
- Host: GitHub
- URL: https://github.com/spapageo/jannel
- Owner: spapageo
- License: mit
- Created: 2016-04-02T20:34:37.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-10-05T19:03:37.000Z (over 3 years ago)
- Last Synced: 2024-04-24T11:39:47.135Z (over 1 year ago)
- Topics: asynchronous, futures, guava, java, kannel, netty
- Language: Java
- Homepage: http://spapageo.github.io/jannel
- Size: 127 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#Jannel - Java Kannel library#
The jannel project implements a client for the bearer-box server using the protocol specified by the Kannel
project. It is implemented using the Netty IO framework for robustness and performance. The design is based on
the well-known cloudhopper-smpp library.
The project is still in beta stages and the API is subject to change.
Will provide releases on the central maven repository and try also to provide snapshots using travis.
[](https://travis-ci.org/spapageo/jannel) [](https://coveralls.io/github/spapageo/jannel?branch=master) [](https://maven-badges.herokuapp.com/maven-central/com.github.spapageo/jannel)
[](https://scan.coverity.com/projects/spapageo-jannel)
##Usage##
Include the dependency of your pom file:
```xml
com.github.spapageo
jannel
0.1.1.BETA
```
Using the library works as follows:
```java
ClientSessionConfiguration config = new ClientSessionConfiguration("awesome_box");
config.setHost("localhost");
config.setPort(12000)
JannelClient jannelClient = new JannelClient(2);
ClientSession session = jannelClient.identify(config, mySessionHandler);
Sms sms = new Sms("hello",
"306975834115",
"Hello World ασδασδ ςαδ`",
SmsType.MOBILE_TERMINATED_PUSH,
DataCoding.DC_UCS2);
WindowFuture future = session.sendSms(sms, 5000, false);
Ack response = future.get();
```