Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java @ 84:72e2dd4feb31
Added the time to live of an artifact to the CallContext.
artifacts/trunk@828 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 25 Mar 2010 17:32:54 +0000 |
parents | efe752c4f8b2 |
children | b2e0cb83631c |
comparison
equal
deleted
inserted
replaced
83:8c4638abd518 | 84:72e2dd4feb31 |
---|---|
127 return ArtifactDatabaseImpl.this; | 127 return ArtifactDatabaseImpl.this; |
128 } | 128 } |
129 | 129 |
130 public CallMeta getMeta() { | 130 public CallMeta getMeta() { |
131 return callMeta; | 131 return callMeta; |
132 } | |
133 | |
134 public Long getTimeToLive() { | |
135 return artifact.getTTL(); | |
132 } | 136 } |
133 | 137 |
134 public void postCall() { | 138 public void postCall() { |
135 switch (action) { | 139 switch (action) { |
136 case NOTHING: | 140 case NOTHING: |
470 byte [] bytes = (byte [])backend.loadArtifact( | 474 byte [] bytes = (byte [])backend.loadArtifact( |
471 artifact, | 475 artifact, |
472 new Backend.ArtifactLoader() { | 476 new Backend.ArtifactLoader() { |
473 public Object load( | 477 public Object load( |
474 ArtifactFactory factory, | 478 ArtifactFactory factory, |
479 Long ttl, | |
475 byte [] bytes, | 480 byte [] bytes, |
476 int id | 481 int id |
477 ) { | 482 ) { |
478 factoryName[0] = factory.getName(); | 483 factoryName[0] = factory.getName(); |
479 | 484 |