com.scudata.parallel.ChannelProxy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esproc Show documentation
Show all versions of esproc Show documentation
SPL(Structured Process Language) A programming language specially for structured data computing.
package com.scudata.parallel;
import com.scudata.dm.IResource;
import com.scudata.dm.op.Channel;
public class ChannelProxy extends IProxy {
private Channel channel;
public ChannelProxy(Channel channel) {
this.channel = channel;
}
public Channel getChannel() {
return channel;
}
public void close() {
Object result = channel.result();
if (result instanceof IResource) {
((IResource)result).close();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy