public class ZooKeeperStreamRepository extends java.lang.Object implements StreamRepository, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
ZooKeeperStreamRepository(ZooKeeperConnection zkConnection) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
long |
count() |
void |
delete(java.lang.Iterable<? extends Stream> entities) |
void |
delete(Stream entity) |
void |
delete(java.lang.String id) |
void |
deleteAll() |
boolean |
exists(java.lang.String id) |
java.util.List<Stream> |
findAll() |
java.util.List<Stream> |
findAll(java.lang.Iterable<java.lang.String> ids) |
org.springframework.data.domain.Page<Stream> |
findAll(org.springframework.data.domain.Pageable pageable) |
java.lang.Iterable<Stream> |
findAll(org.springframework.data.domain.Sort sort) |
java.lang.Iterable<Stream> |
findAllInRange(java.lang.String from,
boolean fromInclusive,
java.lang.String to,
boolean toInclusive)
Return entities whose ids range between
from and to . |
Stream |
findOne(java.lang.String id) |
DeploymentUnitStatus |
getDeploymentStatus(java.lang.String id)
For the given deployment unit id, return the deployment status.
|
<S extends Stream> |
save(java.lang.Iterable<S> entities) |
<S extends Stream> |
save(S entity) |
@Autowired public ZooKeeperStreamRepository(ZooKeeperConnection zkConnection)
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public java.lang.Iterable<Stream> findAll(org.springframework.data.domain.Sort sort)
findAll
in interface org.springframework.data.repository.PagingAndSortingRepository<Stream,java.lang.String>
public org.springframework.data.domain.Page<Stream> findAll(org.springframework.data.domain.Pageable pageable)
findAll
in interface org.springframework.data.repository.PagingAndSortingRepository<Stream,java.lang.String>
public <S extends Stream> S save(S entity)
save
in interface org.springframework.data.repository.CrudRepository<Stream,java.lang.String>
public <S extends Stream> java.lang.Iterable<S> save(java.lang.Iterable<S> entities)
save
in interface org.springframework.data.repository.CrudRepository<Stream,java.lang.String>
public Stream findOne(java.lang.String id)
findOne
in interface org.springframework.data.repository.CrudRepository<Stream,java.lang.String>
public boolean exists(java.lang.String id)
exists
in interface org.springframework.data.repository.CrudRepository<Stream,java.lang.String>
public java.util.List<Stream> findAll()
findAll
in interface org.springframework.data.repository.CrudRepository<Stream,java.lang.String>
public java.util.List<Stream> findAll(java.lang.Iterable<java.lang.String> ids)
findAll
in interface org.springframework.data.repository.CrudRepository<Stream,java.lang.String>
public long count()
count
in interface org.springframework.data.repository.CrudRepository<Stream,java.lang.String>
public void delete(java.lang.String id)
delete
in interface org.springframework.data.repository.CrudRepository<Stream,java.lang.String>
public void delete(Stream entity)
delete
in interface org.springframework.data.repository.CrudRepository<Stream,java.lang.String>
public void delete(java.lang.Iterable<? extends Stream> entities)
delete
in interface org.springframework.data.repository.CrudRepository<Stream,java.lang.String>
public void deleteAll()
deleteAll
in interface org.springframework.data.repository.CrudRepository<Stream,java.lang.String>
public java.lang.Iterable<Stream> findAllInRange(java.lang.String from, boolean fromInclusive, java.lang.String to, boolean toInclusive)
RangeCapableRepository
from
and to
. Note that it is possible that entities with
those exact ids do not exist. If they do exist, the two boolean parameters control whether to include those
results or not. A query from x
to x
returns an empty result, unless both fromInclusive
and toInclusive
are true.findAllInRange
in interface RangeCapableRepository<Stream,java.lang.String>
public DeploymentUnitStatus getDeploymentStatus(java.lang.String id)
DeploymentStatusRepository
getDeploymentStatus
in interface DeploymentStatusRepository<Stream,java.lang.String>
id
- id for deployment unit