Skip to content

fydot/stpclient-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stpclient-java

Usage

import com.zhihu.stp.StpClient
import com.zhihu.stp.StpRequest
import com.zhihu.stp.StpResponse

StpClient client = new StpClient(host, port)
// You can also, add connect and io-wait timeout
StpClient client = new StpClient(host, port, connectTimeout, timeout)
StpRequest stpRequest = new StpRequest();
stpRequest.append(arg1)
stpRequest.append(arg2)

// You can use `StpRequest stpRequest = new StpRequest(Vector<String> xxx)` too

StpResponse stpResponse = client.call(stpRequest)

client.close()

Reference

See also:

stpclient-py

stpclient-go

About

stpclient-java

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages