[Spread-users] Java API: is SpreadConnection thread safe?

Christopher Browne cbbrowne at ca.afilias.info
Tue Feb 5 18:52:35 EST 2008

"Serg V. Gulko" <s.gulko at gmail.com> writes:
> Hello!
> Subj:) Can I use same SpreadConnection object in different threads in same application?

I believe so; the multicast method wraps the writes with

	synchronized (wsynchro) {
		catch(IOException e)
			throw new SpreadException("write(): " + e.toString());
output = reverse("gro.mca" "@" "enworbbc")
Rules of  the Evil Overlord   #23. "I  will keep  a  special cache  of
low-tech weapons and train my troops in their use. That way -- even if
the heroes manage  to neutralize my power  generator and/or render the
standard-issue energy weapons useless -- my troops will not be overrun
by   a   handful   of  savages   armed     with spears   and   rocks."

More information about the Spread-users mailing list