All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scudata.parallel.ChannelProxy Maven / Gradle / Ivy

Go to download

SPL(Structured Process Language) A programming language specially for structured data computing.

There is a newer version: 20241126
Show newest version
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