Golang like channels for java